//
//  RepeatViewCell.m
//  QuickCure
//
//  Created by 源 何 on 16/9/13.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import "RepeatViewCell.h"

#import <UIImageView+WebCache.h>

@implementation RepeatViewCell

- (void)setImageUrl:(NSURL *)imageUrl{
    _imageUrl = imageUrl;
    
    [self.iv_img sd_setImageWithURL:imageUrl];
}

- (UIImageView *)iv_img{
    if (nil == _iv_img) {
        
        UIImageView *iv = [[UIImageView alloc]init];
        
        _iv_img = iv;
        
        [self.contentView addSubview:iv];
        
        [iv mas_makeConstraints:^(MASConstraintMaker *make) {
           
            make.edges.equalTo(self.contentView);
        }];
    }
    return _iv_img;
}



@end
